
const mongoose = require('mongoose');
const Schema = mongoose.Schema;
const studentsSchema = new Schema({
    stu_id:{
        type:String,
        unique:true,
        required:true
    },
    stu_name:{
        type:String,
        unique:false,
        required:true
    },
    stu_sex:{
        type:String,
        unique:false,
        required:true,
    },
    stu_date:{
        type:Date,
        default:Date.now
    },
    stu_jg:{
        type:String,
    },
    stu_hobby:Schema.Types.Mixed,
    stu_head_img:{
        type:String
    }
})
const Students = mongoose.model('students',studentsSchema);
module.exports = Students;